package cn.edu.gduf.luowowo.flight.service.impl;

import cn.edu.gduf.luowowo.flight.domain.FlightDetail;
import cn.edu.gduf.luowowo.flight.mapper.FlightDetailMapper;
import cn.edu.gduf.luowowo.flight.query.FlightQueryObject;
import cn.edu.gduf.luowowo.flight.service.IFlightService;
import com.alibaba.dubbo.config.annotation.Service;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class FlightServiceImpl implements IFlightService {
    @Autowired
    private FlightDetailMapper flightDetailMapper;
    @Override
    public List<FlightDetail> query(FlightQueryObject qo) {
        return flightDetailMapper.selectForList(qo);
    }

    @Override
    public FlightDetail get(Long fid) {
        return flightDetailMapper.selectByPrimaryKey(fid);
    }
}
